package com.management.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.management.demo.domain.Menu;
import com.management.demo.domain.User;
import com.management.demo.vo.RoleVO;
import com.management.demo.vo.UserVO;

import java.util.List;

/**
 * @author Administrator
 * @description 针对表【user(用户表)】的数据库操作Service
 * @createDate 2025-06-10 17:17:25
 */
public interface UserService extends IService<User> {

    // 根据用户id 获取用户角色标识集合
    List<RoleVO> getRoleListByUserId(Integer userId);

    // 根据用户id 获取用户权限集合
    List<Menu> getACLListByUserId(Integer userId);

    // 菜单路径权限
    List<String> getRouteList(List<Menu> menuList);

    // 按钮权限
    List<String> getButtonList(List<Menu> menuList);
}
